#include <cstdlib> // for strtod
#include <cstring> // for strcmp
#include <optional> // for optional
-#include <tuple> // for tuple, make_tuple, tie
+#include <tuple> // for tuple, make_tuple
#include <QByteArray> // for QByteArray
#include <QChar> // for QChar
while (!gx_trk_times->isEmpty()) {
auto* trkpt = new Waypoint;
trkpt->SetCreationTime(gx_trk_times->takeFirst());
- double lat, lon, alt;
- int n;
- std::tie(n, lat, lon, alt) = gx_trk_coords->takeFirst();
+ auto [n, lat, lon, alt] = gx_trk_coords->takeFirst();
// An empty kml:coord element is permitted to indicate missing position data;
// the estimated position may be determined using some interpolation method.
// However if we get one we will throw away the time as we don't have a location.